<ion-view set-dom>
    <ion-header-bar ng-show="!isSearch" align-title="center" class="com-header bg-f7 border-1px-ccc">
        <div class="buttons">
            <button ng-click="back()" class="button fs-0"><i class="icon ion-ios-arrow-back color-333 fs-18"></i>
            </button>
        </div>
        <h1 class="title">驾照管理</h1>
        <div class="buttons">
            <a class="fr color-blue fs-14 lh-40" ui-sref="license.add">添加驾照</a>
        </div>
    </ion-header-bar>
    <ion-content class="bg-f7" overflow-scroll="false" scrollbar-y="false" has-bouncing="false">
        <div class="com-list">
            <div ng-repeat="item in licenseList" class="weui-flex border-1px-f5 h-95 mb-10 bg-white"
                 ng-class="{true:'is-edit'}[item.isEdit]">
                <div class="pl-15 pr-15" style="width: 100%;">
                    <div ng-click="toDetail($index, item.id)" class="weui-flex__item item-cont h-60 pt-15">
                        <h2 class="color-blue fs-14">
                            <span>渝BW**95</span>
                            <span ng-show="item.isDefalut" class="carDefault fs-10">默认</span>
                        </h2>
                        <p class="color-999 fs-12 mt-10">车架号：12**56</p>
                    </div>
                    <div ng-show="!item.isEdit" ng-click="toEdit($index)" class="more h-60 lh-60"
                         style="top: 0;height: 60px;">
                        <i class="icon ion-more"></i>
                    </div>
                    <a class="weui-cell weui-cell_access h-35 border-1px-f7 pl-0 pr-0 carList" href="javascript:;">
                        <div class="weui-cell__bd">
                            <p class="mb-0 fs-14 color-333">
                                <span ng-show="$index==1" class="color-ioy-red fs-12">您有1条违法记录待处理 </span>
                                <span class="color-999 fs-12" ng-show="$index==0">您的行车记录良好，请再接再厉哟~</span>
                            </p>
                        </div>
                        <div class="weui-cell__ft fs-12 color-999"></div>
                    </a>
                </div>

                <div ng-show="item.isEdit" ng-click="cancelFocus($index)" class="h-95 carSet"  ng-class="item.isEdit?'auto':''">
                    <span ng-click="setDefault($index)" class="pl-15 pr-15 color-white bg-ioy-blue fs-18">设为默认</span>
                    <span ng-click="setDefault($index)" class="pl-15 pr-15 color-white bg-ioy-green fs-18">记分查询</span>
                    <span ng-click="cancelFocus($index)" class="pl-15 pr-15 color-white bg-ioy-red fs-18">取消</span>
                </div>
            </div>
        </div>
    </ion-content>



</ion-view>
